package com.pro.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsProduct {

  private Integer productId;
  private Integer productCode;
  private Integer categroyId;
  private Integer recommend;
  private Integer discount;
  private Integer ensure;
  private String productName;
  private String searchKeywords;
  private String mainImage;
  private Integer currentpriceProduct;
  private Integer originalpriceProduct;
  private String productDescription;
  private Integer hits;
  private Integer productSate;
  private String createId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createDate;
  private String updateId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateDate;
  private String productLabel;
  private String content;
  private Integer id;
  private String title;
  private Integer userId;
  private String trueName;
  private String account;
  private Integer commodityId;
  public JsProduct() {
    super();
  }

  public JsProduct(Integer productId, Integer productCode, Integer categroyId, Integer recommend, Integer discount, Integer ensure, String productName, String searchKeywords, String mainImage, Integer currentpriceProduct, Integer originalpriceProduct, String productDescription, Integer hits, Integer productSate, String createId, Date createDate, String updateId, Date updateDate, String productLabel, String content, Integer id, String title, Integer userId, String trueName, String account, Integer commodityId) {
    this.productId = productId;
    this.productCode = productCode;
    this.categroyId = categroyId;
    this.recommend = recommend;
    this.discount = discount;
    this.ensure = ensure;
    this.productName = productName;
    this.searchKeywords = searchKeywords;
    this.mainImage = mainImage;
    this.currentpriceProduct = currentpriceProduct;
    this.originalpriceProduct = originalpriceProduct;
    this.productDescription = productDescription;
    this.hits = hits;
    this.productSate = productSate;
    this.createId = createId;
    this.createDate = createDate;
    this.updateId = updateId;
    this.updateDate = updateDate;
    this.productLabel = productLabel;
    this.content = content;
    this.id = id;
    this.title = title;
    this.userId = userId;
    this.trueName = trueName;
    this.account = account;
    this.commodityId = commodityId;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public Integer getProductCode() {
    return productCode;
  }

  public void setProductCode(Integer productCode) {
    this.productCode = productCode;
  }

  public Integer getCategroyId() {
    return categroyId;
  }

  public void setCategroyId(Integer categroyId) {
    this.categroyId = categroyId;
  }

  public Integer getRecommend() {
    return recommend;
  }

  public void setRecommend(Integer recommend) {
    this.recommend = recommend;
  }

  public Integer getDiscount() {
    return discount;
  }

  public void setDiscount(Integer discount) {
    this.discount = discount;
  }

  public Integer getEnsure() {
    return ensure;
  }

  public void setEnsure(Integer ensure) {
    this.ensure = ensure;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public String getSearchKeywords() {
    return searchKeywords;
  }

  public void setSearchKeywords(String searchKeywords) {
    this.searchKeywords = searchKeywords;
  }

  public String getMainImage() {
    return mainImage;
  }

  public void setMainImage(String mainImage) {
    this.mainImage = mainImage;
  }

  public Integer getCurrentpriceProduct() {
    return currentpriceProduct;
  }

  public void setCurrentpriceProduct(Integer currentpriceProduct) {
    this.currentpriceProduct = currentpriceProduct;
  }

  public Integer getOriginalpriceProduct() {
    return originalpriceProduct;
  }

  public void setOriginalpriceProduct(Integer originalpriceProduct) {
    this.originalpriceProduct = originalpriceProduct;
  }

  public String getProductDescription() {
    return productDescription;
  }

  public void setProductDescription(String productDescription) {
    this.productDescription = productDescription;
  }

  public Integer getHits() {
    return hits;
  }

  public void setHits(Integer hits) {
    this.hits = hits;
  }

  public Integer getProductSate() {
    return productSate;
  }

  public void setProductSate(Integer productSate) {
    this.productSate = productSate;
  }

  public String getCreateId() {
    return createId;
  }

  public void setCreateId(String createId) {
    this.createId = createId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public String getUpdateId() {
    return updateId;
  }

  public void setUpdateId(String updateId) {
    this.updateId = updateId;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public String getProductLabel() {
    return productLabel;
  }

  public void setProductLabel(String productLabel) {
    this.productLabel = productLabel;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public String getTrueName() {
    return trueName;
  }

  public void setTrueName(String trueName) {
    this.trueName = trueName;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public Integer getCommodityId() {
    return commodityId;
  }

  public void setCommodityId(Integer commodityId) {
    this.commodityId = commodityId;
  }

  @Override
  public String toString() {
    return "JsProduct{" +
            "productId=" + productId +
            ", productCode=" + productCode +
            ", categroyId=" + categroyId +
            ", recommend=" + recommend +
            ", discount=" + discount +
            ", ensure=" + ensure +
            ", productName='" + productName + '\'' +
            ", searchKeywords='" + searchKeywords + '\'' +
            ", mainImage='" + mainImage + '\'' +
            ", currentpriceProduct=" + currentpriceProduct +
            ", originalpriceProduct=" + originalpriceProduct +
            ", productDescription='" + productDescription + '\'' +
            ", hits=" + hits +
            ", productSate=" + productSate +
            ", createId='" + createId + '\'' +
            ", createDate=" + createDate +
            ", updateId='" + updateId + '\'' +
            ", updateDate=" + updateDate +
            ", productLabel='" + productLabel + '\'' +
            ", content='" + content + '\'' +
            ", id=" + id +
            ", title='" + title + '\'' +
            ", userId=" + userId +
            ", trueName='" + trueName + '\'' +
            ", account='" + account + '\'' +
            ", commodityId=" + commodityId +
            '}';
  }
}
